package fcc.Seng462project.client.entities;

/* Objectify object that can be placed in the GAE datastore. 
   Set/get functions for each item.
 */

import java.io.Serializable;
import javax.persistence.Id;


@SuppressWarnings("serial")
public class FileInfo implements Serializable {

  @Id
  public Long id;         //id of the file
  public String name;     //file name
  public String fileUrl;  //url to download the file
  public String owner;    //user that uploaded the file
  public Long size;       //size of the file in bytes
  public String fileType; //type of file according to blobstore
  public String blobkey;  //unique blobkey for the file

  public void setName(String name) {
    this.name = name;
  }

  public String getName() {
    return name;
  }

  public String getFileUrl() {
    return fileUrl;
  }

  public void setFileUrl(String fileUrl) {
    this.fileUrl = fileUrl;

  }

  public void setId(Long id) {
    this.id = id;
  }

  public Long getId() {
    return id;
  }
  
  public void setOwner(String owner) {
	this.owner = owner;
  }
  
  public String getOwner() {
	  return owner;
  }
  
  public void setSize(Long size) {
	  this.size = size;
  }
	  
  public Long getSize() {
	  return size;
  }
  
  public void setFileType(String fileType) {
	  this.fileType = fileType;
  }
	  
  public String getFileType() {
	  return fileType;
  }
  
  public void setBlobkey(String blobkey) {
	  this.blobkey = blobkey;
  }
  
  public String getBlobkey() {
	  return blobkey;
  }
}